home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Puzzle / cymin.swf / scripts / DefineButton2_59 / BUTTONCONDACTION on(release).as
Text File  |  2006-05-23  |  899b  |  55 lines

  1. on(release){
  2.    if(right < count)
  3.    {
  4.       if(eval("pattern" add right) == "3")
  5.       {
  6.          right += "1";
  7.       }
  8.       else
  9.       {
  10.          gotoAndPlay(53);
  11.       }
  12.    }
  13.    else if(eval("pattern" add count) == "3")
  14.    {
  15.       time = "0";
  16.       while(time < "7000")
  17.       {
  18.          time += "1";
  19.       }
  20.       if(count == "3")
  21.       {
  22.          what = "17";
  23.          gotoAndPlay(30);
  24.       }
  25.       else
  26.       {
  27.          what = "100";
  28.       }
  29.       next = eval("pattern" add "1");
  30.       x = "2";
  31.       right = "1";
  32.       count += "1";
  33.       if(next == "0")
  34.       {
  35.          gotoAndPlay(37);
  36.       }
  37.       if(next == "1")
  38.       {
  39.          gotoAndPlay(41);
  40.       }
  41.       if(next == "2")
  42.       {
  43.          gotoAndPlay(45);
  44.       }
  45.       if(next == "3")
  46.       {
  47.          gotoAndPlay(49);
  48.       }
  49.    }
  50.    else
  51.    {
  52.       gotoAndPlay(53);
  53.    }
  54. }
  55.